package com._51cto.healthy.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**** 实体类 文件示例 【API】
 * @Author:DancingHorse
 * @Description:TUser构建
 * @Date 2022/4/14 19:13
 *****/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class User implements Serializable{

    private Integer id;
    private String username;
    private String password;
    private String name;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date birthday;
    private String gender;
    private String remark;
    private String station;
    private String telephone;
    private String avatar;


    //--关系拓展
    private List<Role> roles;
    private List<Integer> roleIds;
}